﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Data;

using ECCIT.IO;
using ECCIT.Business.Model;

namespace ECCIT.Report.Excel
{
    public class BaseReportModel : BaseModel, IReportModel
    {
        public string Guid { get; set; }
        public string Name { get; set; }
        public string Type { get; set; }
        public string Sql { get; set; }
        public string Excel { get; set; }
        public string Sheet { get; set; }
        public int? StartRowIndex { get; set; }
        public int? EndRowIndex { get; set; }
        public bool? HasSumRow { get; set; }
        public int? SortNumber { get; set; }
        public bool? HasFooter { get; set; }
        public string MoneyUnit { get; set; }

        private IList<IReportColumnModel> _columns;
        public IList<IReportColumnModel> Columns 
        {
            get 
            {
                if (_columns == null)
                    _columns = new List<IReportColumnModel>();

                return _columns;
            }
        }

        public BaseReportModel() { }
    }
}
